<div id="player"></div>
<script src="https://cdn.jsdelivr.net/npm/cdnbye@latest"></script>
<script src="./playerjs.js" type="text/javascript"></script>
<script>
    var player = new Playerjs({
        id:"player",
        file:"https://iqiyi.com-t-iqiyi.com/20190722/5120_0f9eec31/index.m3u8",
        hlsconfig: {
            p2pConfig: {
                logLevel: true,
                live: false,        // set to true in live mode
            }
        }
    });
</script>